package com.ruicar.afs.cloud.afscase.cargpsmanage.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.afscase.cargpsmanage.condition.CarGpsApplyCondition;
import com.ruicar.afs.cloud.afscase.cargpsmanage.entity.CarGpsApply;
import com.ruicar.afs.cloud.afscase.cargpsmanage.vo.CarGpsApplyVO;
import com.ruicar.afs.cloud.common.modules.afscorebusiness.enums.GpsStatusEnum;

import java.util.List;

/**
 * <p>Description：GPS申请</p>
 * @author xueyu.ma
 * @createDate 2020-6-15
 * @version 1.0
 */
public interface CarGpsApplyService extends IService<CarGpsApply> {

    /**
     * @param
     * @description 获取Gps管理信息
     * @author yk.Li
     * @date 2020/7/27
     */
    IPage<CarGpsApplyVO> getCarGpsApplyInfoList(Page page, CarGpsApplyCondition carGpsApplyCondition);

    /**
     * @param
     * @description GPS综合查询
     * @author yk.Li
     * @date 2020/8/3
     */
    JSONObject getAllOrderInfoByAppCode(String orderNo);

    /**
     * @param
     * @Description 获取GPS在流程节点上的所有数据
     * @Author yk.Li
     * @Date 2020/8/6
     */
    List<CarGpsApply> getAllCarGpsApplyInfoByStaus();

    /**
     * @param
     * @Description 修改GPS申请状态
     * @Author yk.Li
     * @Date 2020/8/6
     */
    void updateApplyStatus(String contractNo, GpsStatusEnum statusEnum ,Long carId);
}
